package com.jk.bgmainconsumer.service;

import com.jk.bgmainconsumer.entity.TreeEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 文件名称:TreeService
 *
 * @Description //TODO
 * @Date 2021/8/31 20:46
 * 作者 王乐
 * Copyright (c) 2021,  All Rights Reserved.</pre>
 */
@Component
@FeignClient("BGMAINPROVIDER")
public interface TreeService {

    @RequestMapping("/bgTree/getTree")
    List<TreeEntity> getTree(@RequestParam Integer pid);
}
